﻿@model IEnumerable<BlogMVC.ModelEntity.Article>

@{
    ViewBag.Title = "Managermen Aricle";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Managermen Aricle</h2>

<p>
    @Html.ActionLink("ADD", "Create")
</p>
<table width=100% >
    <tr>
    <th></th>
        <td><h3>Name</h3></td>
        <td><h3>Lead</h3></td>
        <td><h3>ImageLink</h3></td>
       

    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.ArticleId }) |
            @Html.ActionLink("Details", "Details", new { id = item.ArticleId }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ArticleId })
        </td>
 
        <td>
            @item.Name
        </td>
        <td>
            @item.Lead
        </td>
        <td>
            @item.ImageLink
        </td>


    </tr>
}

</table>

